import json

with open("天气预报json.txt","r",encoding="utf-8") as f:
    data = json.load(f)


suzhou_data = data["result"]
print("未来三天天气：")
count = 0
for d in suzhou_data["future"]:
    if count >=3:
         break
    print("日期：",d["date"])
    print("温度：",d["temperature"])
    print("天气：",d["weather"])
    print("风向：",d["direct"])
    count += 1
